package com.app.repository.interfaces;

import com.app.model.main.Approval;

import java.util.List;

public interface ApprovalMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Approval record);

    int insertSelective(Approval record);

    Approval selectByPrimaryKey(Long id);

    Approval selectByParam(long userId, String time);

    int updateByPrimaryKeySelective(Approval record);

    int updateByPrimaryKey(Approval record);

    long getApprovalNumber(Long objectId, byte type);

    Approval getFlagWithParam(long userId, long objectId, byte type);

    List<Approval> getListByUserIdBetween(long userId, String time1, String time2);
}